<template>
  <div class="list-item">
    <div class="block title">{{ title }}</div>
    <div class="block content">{{ content }}</div>
  </div>
</template>

<script>
export default {
  name: "ListItem",
  props: {
    title: String,
    content: String,
  },
};
</script>

<style lang="scss" scoped>
.list-item {
  width: 90%;
  height: 47px;
  line-height: 47px;
  border: 1px solid #acacac;
  margin: 10px auto;
  padding-left: 1rem;
  border-radius: 10px;
  .block {
    display: inline-block;
  }
  .title {
    width: 28%;
    color: #f40;
    font-weight: bold;
    vertical-align: top;
  }
  .content {
    width: 60%;
    height: 100%;
    overflow: hidden;
  }
}
</style>
